﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo0524
{
    class Vehicle
    {
        private string name;

        public string Name { get => name; set => name = value; }

        public Vehicle() { }
        public Vehicle(string name)
        {
            this.name = name;
        }
        public void Vehicl() 
        {
            Console.WriteLine("我是交通工具！");
        }
    }
}
